package com.xydtech.workflow.domain;

import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 流程节点逻辑配置对象 wfl_steplogic
 *
 * @author JHON
 * @date 2021-06-07
 */
public class WflSteplogic extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 逻辑编号 */
    private Long logicId;

    /** 流程版本号 */
    @Excel(name = "流程版本号")
    private Long versionId;

    /** 流程节点编号 */
    @Excel(name = "流程节点编号")
    private Long stepId;

    /** 逻辑类型            1-风险策略            2-自定义外部类 */
    @Excel(name = "逻辑类型            1-风险策略            2-自定义外部类")
    private String logicType;

    /** 风险策略 */
    @Excel(name = "风险策略")
    private String riskStrategy;

    /** 外部类名称 */
    @Excel(name = "外部类名称")
    private String className;

    /** 外部类方法名 */
    @Excel(name = "外部类方法名")
    private String methodName;

    /** 说明 */
    @Excel(name = "说明")
    private String description;

    /** 执行时点            1-始终执行            2-同意时执行            3-退回时执行            4-拒绝时执行 */
    @Excel(name = "执行时点            1-始终执行            2-同意时执行            3-退回时执行            4-拒绝时执行")
    private String runSts;

    /** 复制的版本号 */
    private Long copyVersionId;

    public Long getCopyVersionId() {
        return copyVersionId;
    }

    public void setCopyVersionId(Long copyVersionId) {
        this.copyVersionId = copyVersionId;
    }

    public void setLogicId(Long logicId) {
        this.logicId = logicId;
    }

    public Long getLogicId() {
        return logicId;
    }

    public void setVersionId(Long versionId) {
        this.versionId = versionId;
    }

    public Long getVersionId() {
        return versionId;
    }

    public void setStepId(Long stepId) {
        this.stepId = stepId;
    }

    public Long getStepId() {
        return stepId;
    }

    public void setLogicType(String logicType) {
        this.logicType = logicType;
    }

    public String getLogicType() {
        return logicType;
    }

    public void setRiskStrategy(String riskStrategy) {
        this.riskStrategy = riskStrategy;
    }

    public String getRiskStrategy() {
        return riskStrategy;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassName() {
        return className;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setRunSts(String runSts) {
        this.runSts = runSts;
    }

    public String getRunSts() {
        return runSts;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("logicId", getLogicId())
                .append("versionId", getVersionId())
                .append("stepId", getStepId())
                .append("logicType", getLogicType())
                .append("riskStrategy", getRiskStrategy())
                .append("className", getClassName())
                .append("methodName", getMethodName())
                .append("runSts", getRunSts())
                .append("description", getDescription())
                .toString();
    }
}